<!-- 资产使用详情描述框 -->
<template>
  <div>
    <el-card class="mr20 ml20">
      <el-descriptions title="使用详情" :labelStyle="{ width: '10%' }" border>
        <el-descriptions-item label="申请编号" :span="2">
          {{ form.applyOdd }}
        </el-descriptions-item>
        <el-descriptions-item label="使用状态">
          <el-tag type="success">使用中</el-tag>
        </el-descriptions-item>
        <el-descriptions-item label="使用对象">
          {{ form.useTarget }}
        </el-descriptions-item>
        <el-descriptions-item label="使用部门" :contentStyle="{ width: '20%' }">
          {{ form.createDept }}
        </el-descriptions-item>
        <el-descriptions-item label="使用人">
          {{ form.createBy }}
        </el-descriptions-item>
        <el-descriptions-item label="审核时间" :span="2">
          {{ form.updateTime }}
        </el-descriptions-item>
        <el-descriptions-item label="审核人">
          {{ form.updateBy }}
        </el-descriptions-item>
        <el-descriptions-item label="存放地点" :span="3">
          {{ form.place }}
        </el-descriptions-item>
      </el-descriptions>
    </el-card>
  </div>
</template>

<script>
import { getByAssetId as get } from "@/api/prod/use/apply";

export default {
  name: "Descriptions",
  dicts: ["asset_state"],
  props: ["id"],
  data() {
    return {
      // 遮罩层
      loading: true,
      // 基础信息
      form: {},
    };
  },

  created() {
    this.getDetail();
  },

  methods: {
    /** 表单重置 */
    reset() {},

    /** 查询资产详细 */
    getDetail() {
      this.loading = true;
      get(this.id).then((response) => {
        this.form = response.data;
        this.loading = false;
      });
    },
  },
};
</script>

<style>
</style>